import { NetService } from '@core/http'
// import { Observable } from 'rxjs'
import { of } from 'rxjs'
import { Injectable } from '@angular/core'

import taskList from '../../assets/json/task.json'
import infoList from '../../assets/json/info.json'
import resultsList from '../../assets/json/results.json'
import productList from '../../assets/json/product.json'
import activityList from '../../assets/json/activity.json'
import allinfoList from '../../assets/json/allinfo.json'
import statisticsList from '../../assets/json/statistics.json'
import marketList from '../../assets/json/market.json'
import customerviewList from '../../assets/json/customerview.json'


@Injectable()
export class ApiService {
  constructor(private net: NetService) {}

  public gettaskList() {
    return  of(taskList)
  }

  public getinfoList() {
    return  of(infoList)
  }

  public getresultsList() {
    return  of(resultsList)
  }

  public getproductList() {
    return  of(productList)
  }

  public getactivityList() {
    return  of(activityList)
  }

  public getallinfoList() {
    return  of(allinfoList)
  }
  public getstatisticsList() {
    return  of(statisticsList)
  }

  public getmarketList() {
    return  of(marketList)
  }

  public getcustomerviewList() {
    return  of(customerviewList)
  }
}
